package com.tsmti.activiti.entity;

import com.tsmti.core.common.entity.ActBaseDataEntity;
import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Package：com.tsmti.activiti.entity
 * @Class：ExtendActFlowbusEntity
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/7/30 12:11
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name="extend_act_flowbus")
@DynamicUpdate
@DynamicInsert
public class ExtendActFlowBus extends ActBaseDataEntity<String> {
    private static final long serialVersionUID = -8879755334267220989L;

    private String id;
    /**业务ID*/
    private String busId;
    /**业务流程状态  1=草稿 2=审批中 3=结束*/
    private String status;
    /**流程发起时间*/
    private Date startTime;
    /**流程实例id*/
    private String instanceId;
    /**流程定义id*/
    private String defId;
    /**流程发起人*/
    private String startUserId;
    /**业务流程单据编号*/
    private String code;
    /**流程key*/
    private String actKey;
    /**业务表名*/
    private String tableName;

    @Id
    @Override
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getBusId() {
        return busId;
    }

    public void setBusId(String busId) {
        this.busId = busId;
    }

    public String getActKey() {
        return actKey;
    }

    public void setActKey(String actKey) {
        this.actKey = actKey;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Override
    public String getStatus() {
        return status;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public Date getStartTime() {
        return startTime;
    }

    @Override
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    @Override
    public String getInstanceId() {
        return instanceId;
    }

    @Override
    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    @Override
    public String getDefId() {
        return defId;
    }

    @Override
    public void setDefId(String defId) {
        this.defId = defId;
    }

    @Override
    public String getStartUserId() {
        return startUserId;
    }

    @Override
    public void setStartUserId(String startUserId) {
        this.startUserId = startUserId;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }
}
